<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class ComponentController extends Controller
{
    public function show($id)
    {
        $folder = resolveView(__CLASS__);
        return view($folder . '.' . $folder . '_' . $id);
    }

    public function provider()
    {
        return view(resolveView(__CLASS__, __FUNCTION__));
    }

    public function __call($method, $parameters)
    {
       return view(resolveView(__CLASS__, $method));
    }
}
